<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录</title>
    <script src="./utils/layui/layui.js"></script>
    <link rel="stylesheet" href="./utils/layui/css/layui.css">
    <style>
        body {
            background-color: rgb(81, 80, 87) !important;
        }

        main {
            position: relative;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 500px;
            height: 300px;
            background-color: white;
            border-radius: 10px;
            padding: 20px;
            padding-top: 80px;
            box-shadow: 0 0 8px 4px rgba(192, 192, 192, 0.233);

        }

        img {
            width: 120px;
            height: 120px;
            position: absolute;
            top: -60px;
            left: 50%;
            transform: translateX(-50%);
            border-radius: 50%;
            padding: 5px;
            background-color: white;
            box-shadow: 0 0 4px 4px rgba(153, 153, 153, 0.233);
        }

        #login,#register {
            text-align: center;
        }

        #login>div,#register>div {
            margin-left: 0;
            margin-top: 40px;
        }

        #login button,#register button {
            width: 120px;
            height: 40px;
        }
        #rigister-box{
            height: 350px;
        }
    </style>
</head>
<body>
    <main id="login-box">
        <form class="layui-form layui-form-pane" name="login-form" lay-filter="login-form">
            <div class="layui-form-item">
                <label class="layui-form-label">用户名</label>
                <div class="layui-input-block">
                    <input id="username" name="username" type="text" placeholder="请输入用户名" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">密码</label>
                <div class="layui-input-inline">
                    <input type="text" name="password" id="password" placeholder="请输入密码" class="layui-input">
                </div>
                <div class="layui-form-mid layui-word-aux">辅助文字</div>
            </div>
            <div class="layui-form-item" id="login">
                <div class="layui-input-block login-box">
                    <span lay-submit lay-filter="login-btn" class="layui-btn">登录</span>
                    <a href="#/rigister-box" class="layui-btn layui-btn-primary">注册</a>
                </div>
            </div>
        </form>
        <img src="./images/2.jpg" alt="">
    </main>

    <!-- -----------注册----------------------- -->
    <main id="rigister-box" style="display: none;">
        <form class="layui-form layui-form-pane"  name="rigister-form" lay-filter="rigister-form">
            <div class="layui-form-item">
                <label class="layui-form-label">物业公司</label>
                <div class="layui-input-block">
                    <input id="propertyName" name="propertyName" type="text" placeholder="请输入物业名称" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">用户名</label>
                <div class="layui-input-block">
                    <input id="registerName" name="registerName" type="text" placeholder="请输入用户名" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">密码</label>
                <div class="layui-input-inline">
                    <input type="text" name="registerPass" id="registerPass" placeholder="请输入密码" class="layui-input">
                </div>
                <div class="layui-form-mid layui-word-aux">辅助文字</div>
            </div>
            <div class="layui-form-item" id="register">
                <div class="layui-input-block register-box">
                    <span class="layui-btn"  lay-submit lay-filter="rigister-btn">注册</span>
                    <a href="#/login-box" class="layui-btn layui-btn-primary">登录</a>
                </div>
            </div>
        </form>
        <img src="./images/1.jpg" alt="">
    </main>


</body>
</html>